package cn.codeforfun.controller;

import cn.codeforfun.mq.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/2/25.
 */
@RestController
public class TestController {
  @Autowired
  private Sender sender;

  @RequestMapping(value = "/send", method = RequestMethod.GET)
  public void send(String msg) {
    sender.send(msg);
  }
}
